package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.domain.db.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserInfoMapper extends BaseMapper<UserInfo> {
    @Select("SELECT info.* FROM tb_black_list b,tb_user_info info WHERE b.black_user_id=info.id AND b.user_id = #{userId}")
    IPage<UserInfo> blacklist(IPage<UserInfo> iPage, @Param("userId") Long userId);
}
